﻿using SqlPerfomance.V2.DAL;
using SqlPerfomance.V2.DomainModel.Enums;
using SqlPerfomance.V2.DomainModel.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlPerfomance.V2.Tests.TestProviders
{
	public class NsTestProvider : ITestProvider<NestedSetTreeNode>
	{
		private ConnectionStrings _connectionString = ConnectionStrings.SqlServerConnectionString;
		private string _tableName = string.Empty;
		private NestedSetTreeRepository _repository;
		public NsTestProvider(ConnectionStrings connectionString, string tableName)
		{
			_connectionString = connectionString;
			_tableName = tableName;
			_repository = new NestedSetTreeRepository();
		}
		public IEnumerable<NestedSetTreeNode> SelectAll()
		{
			return _repository.GetNsData(_connectionString, _tableName);
		}

		public IEnumerable<NestedSetTreeNode> SelectPathById()
		{
			throw new NotImplementedException();
		}

		public IEnumerable<NestedSetTreeNode> SelectBranchById()
		{
			throw new NotImplementedException();
		}

		public NestedSetTreeNode SelectParentById()
		{
			throw new NotImplementedException();
		}

		public IEnumerable<NestedSetTreeNode> SelectChildrenById()
		{
			throw new NotImplementedException();
		}

		public void AddChildrenNode()
		{
			throw new NotImplementedException();
		}

		public void MoveNode()
		{
			throw new NotImplementedException();
		}

		public void RemoveNode()
		{
			throw new NotImplementedException();
		}
	}
}
